
from selenium import webdriver
from selenium.webdriver.common.by import By
import time


driver = webdriver.Firefox()
# driver = webdriver.Edge()
# driver = webdriver.Chrome()

def get_url(url):
    driver.get(url)
    # driver.maximize_window()

def input_text(locator_type,value,text):
    driver.find_element(by=locator_type,value=value).send_keys(text)
    time.sleep(10)

get_url("https://www.baidu.com");

input_text(By.ID, 'kw', "牛客网")